package tests;
import com.google.gson.Gson;


public class TestJson {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
TestObject test = new TestObject("coco", "papa", 256);

Gson gson = new Gson();

String converted = gson.toJson(test);
System.out.println(converted);

OtherObject other = new OtherObject("coco2", "papa2", test);

System.out.println(gson.toJson(other));
	}

}
